package net.sochk.web.impl;

import net.sochk.web.dao.UserDao;
import net.sochk.web.entity.User;

public class UserDaoImpl extends BaseDao implements UserDao {

	public User getByUserName(String userAccount) {
		String hql = "from User user where user.adminAccount=?";
		User user = (User) openSession().createQuery(hql).setString(1, userAccount).uniqueResult();
		return user;
	}

}
